package com.cmc.cloud.cmclink.doc.api.document;

import javax.annotation.Resource;

import com.cmc.cloud.cmclink.doc.api.document.req.cargomanifest.TjBlnoCntrReportVO;
import com.cmc.cloud.cmclink.doc.api.document.req.cargomanifest.TjBlnoCntrReqVO;
import com.cmc.cloud.cmclink.doc.service.BlnoCntrService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;

import com.cmc.cloud.cmclink.doc.api.document.req.cargomanifest.CargoManifestReqDTO;
import com.cmc.cloud.cmclink.doc.api.document.req.cargomanifest.CargoManifestRespDTO;
import com.cmc.cloud.cmclink.doc.service.manifest.CargoManifestService;
import com.cmes.framework.common.pojo.CommonResult;

/**
 * @author dev89
 */
@RestController
@Validated
public class CargoManifestApiImpl implements CargoManifestApi {

    @Resource
    private CargoManifestService cargoManifestService;
    @Resource
    private BlnoCntrService blnoCntrService;

    @Override
    public CommonResult<CargoManifestRespDTO> queryFilterCargoManifest(CargoManifestReqDTO cargoManifestReqDTO) {
        return CommonResult.success(cargoManifestService.queryFilterCargoManifest(cargoManifestReqDTO));
    }

    @Override
    public CommonResult<TjBlnoCntrReportVO> getTjBlnoCntr(TjBlnoCntrReqVO reqVo) {
        return CommonResult.success(blnoCntrService.getTjBlnoCntr(reqVo));
    }
}
